package com.upup.train_management.service;

import com.upup.train_management.entity.User;

import java.util.List;

public interface UserService {
    List<User> getAllUsers();
    User getUserById(Long id);
    User getUserByUsername(String username);
    User getUserByEmail(String email);
    User getUserByPhone(String phone);
    User registerUser(User user);
    User updateUser(User user);
    boolean changePassword(Long userId, String oldPassword, String newPassword);
    boolean deleteUser(Long id);
    boolean isUsernameExists(String username);
    boolean isEmailExists(String email);
    boolean isPhoneExists(String phone);
}